<template>
    <div>
        <button @click="changeData">按钮2</button>
    </div>
</template>
<script>
import store from '../store.js'
export default {
    methods:{
        changeData(){
            store.setStateMsg("我是Brother里的数据");
        }
    }
}
</script>